package com.fragrance.service;

import java.util.List;
import java.util.Map;

import com.fragrance.model.DeviceMainModel;
import com.fragrance.model.UserDeviceModel;

public interface DeviceMainService {

	Map<String,Object> deviceList(Map<String, Object> params);
	
	Map<String,Object> deviceDetail(Map<String, Object> params);
	
	Map<String,Object> deviceDelete(Map<String, Object> params);
	
	Map<String, Object> deviceAdd(Map<String, Object> params);
	
	Map<String, Object> deviceEdit(Map<String, Object> params);
	
	Map<String, Object> deviceWorkList(Map<String, Object> params);
	
	Map<String, Object> deviceOprate(Map<String, Object> params);
	
	List<DeviceMainModel> findDevice(String imei);
	
	Map<String,Object> checkBindAndOpen(Map<String,Object> params);
	
	UserDeviceModel isOpen(String imei);

	boolean addUserDevice(Map<String, String> data);
	
	UserDeviceModel findUserDevice(String imei, String openId, String deviceStatus);

	boolean updateUserDevice(Map<String, String> data);
	
	Map<String, Object> addDeviceByExcel(Map<String, Object> parmas);
	
	boolean updateStatus(Integer newDeviceStatus, String imei, Integer oldDeviceStatus);

	boolean updateUserDeviceGear(Map<String, Object> data);
	
    UserDeviceModel isUse(String imei, String openid);
    
	UserDeviceModel deviceOpenInfo(Map<String, Object> data);

	List<UserDeviceModel> getDeviceWorkList(String openid);

	UserDeviceModel isBindOpenOpen(Map<String, Object> data);

	Map<String, Object> deviceBindRight(Map<String, Object> params);

	boolean updateWorkTime(Map<String, Object> timeResult);

	

}
